var express = require('express');
var router = express.Router();
var dataCtrl = require('../controllers/user.controller')

router.get('/', dataCtrl.getall);
router.post('/register', dataCtrl.create);
router.post('/login', dataCtrl.login);
router.post('/update', dataCtrl.update)
router.post('/updatepass', dataCtrl.update)
router.post('/find', dataCtrl.isSet)
router.post('/list',dataCtrl.list)
router.post('/removes',dataCtrl.removes)
router.post('/removeusers',dataCtrl.removeusers)

module.exports = router;

